package org.chench.extra.logsift.bo;

import org.chench.extra.logsift.enums.ForwardType;

import java.util.List;

/**
 * 需要监控日志变化的应用
 * @author chench
 * @date 2025.05.17
 */
public class LogApp {
    /** 应用名称 */
    private String appName;

    /** 日志转发类型 */
    private List<ForwardType> forwardTypes;

    /** 日志转发目的地 */
    private String forwardUrl;

    /** 需要过滤的日志级别 */
    private String filterLevel;

    /** 日志时间戳模式 */
    private String timestampPattern;

    /** 日志文件路径模式，需要指定绝对路径 */
    private String pathPattern;

    /** 日志内容模式，用于解析指定格式的日志内容 */
    private String contentPattern;

    public LogApp(String pathPattern, String contentPattern) {
        this.pathPattern = pathPattern;
        this.contentPattern = contentPattern;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public List<ForwardType> getForwardTypes() {
        return forwardTypes;
    }

    public void setForwardTypes(List<ForwardType> forwardTypes) {
        this.forwardTypes = forwardTypes;
    }

    public String getForwardUrl() {
        return forwardUrl;
    }

    public void setForwardUrl(String forwardUrl) {
        this.forwardUrl = forwardUrl;
    }

    public String getFilterLevel() {
        return filterLevel;
    }

    public void setFilterLevel(String filterLevel) {
        this.filterLevel = filterLevel;
    }

    public String getTimestampPattern() {
        return timestampPattern;
    }

    public void setTimestampPattern(String timestampPattern) {
        this.timestampPattern = timestampPattern;
    }

    public String getPathPattern() {
        return pathPattern;
    }

    public void setPathPattern(String pathPattern) {
        this.pathPattern = pathPattern;
    }

    public String getContentPattern() {
        return contentPattern;
    }

    public void setContentPattern(String contentPattern) {
        this.contentPattern = contentPattern;
    }
}